@extends('layout.app') @section('content')

<div class="box-body">

    <table id="rowed3"></table>
    <div id="prowed3"></div>

</div>

<script>
    $(document).ready(function() {

        var data = {
            url: "/lottery/day",
            colNames: ["日期" , "下注总额(去佣金)", "总盈利" , "系统盈利" , "转卖费"],
            colModel: [{
                name: 'date',
                key: true,
                formatter:'date',
                formatoptions: {srcformat: 'Y-m-d', newformat: 'Y-m-d'},
                searchoptions: {
                    sopt: ['lt', 'le', 'gt', 'ge'],
                    dataInit : function (elem) {
                        $(elem).datepicker({
                            dateFormat: 'yy-mm-dd',
                            monthNames: ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'],
                            dayNamesMin: ['日','一','二','三','四','五','六'] });
                    }
                }
            },{
                name: 'spend',
                formatter: function(cellvalue, options, object) {
                    return '<a href="/lottery/touzhu?date='+object.date+'"><span class="text-success">'+cellvalue/100+'</span></a>';
                }
            },{
                name: 'win',
                formatter: function(cellvalue) {
                    return cellvalue / 100;
                }
            },{
                name: 'win2',
                formatter: function(cellvalue) {
                    return cellvalue / 100;
                }
            }, {
                name: 'fee',
                formatter: function(cellvalue) {
                    return cellvalue / 100;
                }
            }],
            caption: '<i class="fa fa-table"></i> {{$label2}}',
            sortname: "date",
            sortorder: "desc"
        };

        jqGrid(data, false, false, false);
    });

</script>

@endsection